home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / v9n03.arc / DSPLOG.BAT < prev    next >
DOS Batch File  |  1990-01-12  |  2KB  |  45 lines

  1. ECHO OFF
  2. : This displays the contents of a ))A.LOG type compressed report file created
  3. : by CFcompC or if that fails, the file will be displayed as is.
  4. IF "%1"=="" goto help
  5. IF %1==? goto help
  6. IF NOT EXIST %1 GOTO MissingF
  7. GOTO Start
  8. :Help
  9. ECHO ╔═════════════════════════════════════════════════════════════════════════╗
  10. ECHO ║ Syntax: DSPLOG filename  (filename is the report file to display)       ║
  11. ECHO ╟─────────────────────────────────────────────────────────────────────────╢
  12. ECHO ║ D S P l o g - will display the content of a compressed report file such ║
  13. ECHO ║               as the ))A.LOG files created by CHKfileC in batch files:  ║
  14. ECHO ║               SCANmax, SCANsys and INITsys.                             ║
  15. ECHO ╟─────────────────────────────────────────────────────────────────────────╢
  16. ECHO ║ If the file is not a compressed report file, DSPlog will assume its     ║
  17. ECHO ║ a display formatted CHKfile report file, and will simply display the    ║
  18. ECHO ║ file.                                                                   ║
  19. ECHO ╟─────────────────────────────────────────────────────────────────────────╢
  20. ECHO ║    PCDATA TOOLKIT 1.0 Copyright (C) 1990 Ziff Communications Co.        ║
  21. ECHO ║                    PC Magazine ■ Wolfgang Stiller                       ║
  22. ECHO ╚═════════════════════════════════════════════════════════════════════════╝
  23. GOTO END
  24. :Start
  25. CFCOMPC ))@@NUL.$$$ %1/P
  26. :  If this file is an invalid type, display it as ascii chkfile report
  27. IF ERRORLEVEL 16 GOTO Try2
  28. GOTO END
  29. :MissingF
  30. ECHO Sorry, file %1 can't be found in this directory.
  31. GOTO End
  32. :Try2
  33. ECHO ╔═════════════════════════════════════════════════════════════════════════╗
  34. ECHO ║ DSPlog could not process file as a CHKfileC compressed report file.     ║
  35. ECHO ║ The file will now be displayed as normal ASCII report file.             ║
  36. ECHO ║ Hit CNTL/BREAK to abort this, otherwise hit any other key.              ║
  37. ECHO ╚═════════════════════════════════════════════════════════════════════════╝
  38. PAUSE
  39. MORE < %1
  40. :End
  41. ECHO ╔═════════════════════════════════════╗
  42. ECHO ║ *** E N D   O F   D I S P L A Y *** ║
  43. ECHO ╚═════════════════════════════════════╝
  44. 
  45.